package com.lxx.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/home")
public class HomeController {

	@Value("${application.hello:Hello Angel}")
	private String hello;
	 
	@RequestMapping("/index")
	public String index(Map<String,Object> map){
		System.out.println("HelloController.helloJsp().hellosada="+hello);
        map.put("hello", hello);
		return "hello";
	}
}
